package com.tdkj.model.website;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * XnkyComplaint entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "website_complaint")
public class BeanComplaint extends BaseEntity{
	
	private String title;
	private String content;
	private String complainttype;
	
	private Timestamp createtime;
	private BeanUser user;
	private BeanUser toUser;
	
	private String rcontent;
	private BeanUser ruser;
	private Timestamp rtime;
	
	private String linkUrl;

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	public String getRcontent() {
		return rcontent;
	}

	public void setRcontent(String rcontent) {
		this.rcontent = rcontent;
	}

	public String getComplainttype() {
		return this.complainttype;
	}

	public void setComplainttype(String complainttype) {
		this.complainttype = complainttype;
	}

	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}
	
	@ManyToOne(fetch = FetchType.LAZY,cascade={CascadeType.REFRESH})
	@JoinColumn(name = "user_id")
	public BeanUser getUser() {
		return this.user;
	}
	
	public void setUser(BeanUser user) {
		this.user = user;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	@ManyToOne(fetch = FetchType.LAZY,cascade={CascadeType.REFRESH})
	@JoinColumn(name = "to_user_id")
	public BeanUser getToUser() {
		return toUser;
	}

	public void setToUser(BeanUser toUser) {
		this.toUser = toUser;
	}

	@ManyToOne(fetch = FetchType.LAZY,cascade={CascadeType.REFRESH})
	@JoinColumn(name = "r_user_id")
	public BeanUser getRuser() {
		return ruser;
	}

	public void setRuser(BeanUser ruser) {
		this.ruser = ruser;
	}

	public Timestamp getRtime() {
		return rtime;
	}

	public void setRtime(Timestamp rtime) {
		this.rtime = rtime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}


	
}